<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@	taglib	uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>
<head>
	<title>支付</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link type="text/css" rel="stylesheet" href="css/orders_submit.css">
	<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="layer/layer.js"></script>
	<script type="text/javascript" src="js/cart.js"></script>
</head>
<body>
	


	

	<div class="cart-items">
    <div class="container">
        <h2>确认收货信息</h2>
        <form class="form-horizontal" action="${pageContext.request.contextPath }/orders_confirm" method="post" id="payform">
            <div class="row">
                <label class="control-label col-md-1">收货人</label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="name" value="${user.name }" style="height:auto;padding:10px;" placeholder="输入收货人" required="required"><br>
                </div>
            </div>
            <div class="row">
                <label class="control-label col-md-1">收货电话</label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="phone" value="${user.phone }" style="height:auto;padding:10px;" placeholder="输入收货电话" required="required"><br>
                </div>
            </div>
            <div class="row">
                <label class="control-label col-md-1">收货地址</label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="address" value="${user.address }" style="height:auto;padding:10px;" placeholder="输入收货地址" required="required"><br>
                </div>
            </div>
            <br><hr><br>
            <h2>选择支付方式</h2>
            <h3>支付金额: ¥ ${orders.total }</h3><br><br>
            <div class="payment-methods">
                <label class="payment-option">
                    <input type="radio" name="paytype" value="1" checked="checked" />
                    <i class="fas fa-credit-card"></i> 微信支付
                </label>
                <label class="payment-option">
                    <input type="radio" name="paytype" value="2" />
                    <i class="fas fa-credit-card"></i> 支付宝支付
                </label>
                <label class="payment-option">
                    <input type="radio" name="paytype" value="3" />
                    <i class="fas fa-cash-register"></i> 银行卡
                </label>
            </div>
            <div class="register-but text-center">
                <input type="submit" value="确认订单">
                <a href="javascript:history.back();" class="btn btn-secondary">返回</a>
                <div class="clearfix"> </div>
            </div>
        </form>
    </div>
</div>





<!-- 尾部 -->
<jsp:include page="/footer.jsp"></jsp:include>

	
	<script type="text/javascript">
		function dopay(paytype){
			$("#paytype").val(paytype);
			$("#payform").submit();
		}
	</script>

</body>
</html>